import {Component} from "react";
import React from "react";
import Untils from '../untils/untils';
import {connect} from 'react-redux'
import img from '../images/loading-list.gif'

class User extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
            <div className='sign-page' id='signPage'>

            </div>
        )
    }

    componentDidMount() {

        const {BMap, BMAP_STATUS_SUCCESS} = window;

        var map = new BMap.Map("signPage");
        var point = new BMap.Point(116.404, 39.915);
        map.centerAndZoom(point, 11);


    }

    componentWillMount() {
        this.props.sendStatus();
    }

}

const mapDispatchToProps = dispatch => ({
    sendStatus: message => {
        dispatch({type: 'SHOW_HEAD'});
        dispatch({type: 'HIDE_FOOT'});
    },
});
export default connect(
    null,
    mapDispatchToProps
)(User)